<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1,minimum-scale=1, maximum-scale=1, user-scalable=no">
    <link rel="shortcut icon" href="../img/logo.png">
    <link href="../css/util.css" rel="stylesheet" type="text/css"/>
    <title>$Title$</title>
    <style>
        * {
            moz-user-select: -moz-none;
            -moz-user-select: none;
            -o-user-select: none;
            -khtml-user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
    </style>
</head>
<body>
<a  href="weixin://" >打开微信</a>
<a href="javascript:;" id="openApp">打开淘宝or餐宴网</a>
</body>

<script type="text/javascript">
    document.getElementById('openApp').onclick = function(e){
        if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i))
        {
            window.location.href = "taobao://";//ios app协议   hrhj://
            window.setTimeout(function() {
                window.location.href = "https://itunes.apple.com/cn/app/id477927812";
            }, 3000)
        }
        if(navigator.userAgent.match(/android/i))
        {
            window.location.href = "weixin://";//android app协议
            window.setTimeout(function() {
                window.location.href = "https://www.taobao.com";//android 下载地址
            }, 3000);
        }
    };
</script>
</html>